﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using TodoMVC.Models.DBModels;

namespace TodoMVC.Models.BusinessModels
{
    /// <summary>
    /// 代办事项
    /// </summary>
    public class TodoItemResult
    {
        /// <summary>
        /// 
        /// </summary>
        public TodoItemResult()
        {

        }

        /// <summary>
        /// 唯一数字id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 唯一guid,需要手动分配
        /// </summary>
        public Guid Guid { get; set; }

        /// <summary>
        /// 代办事项内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 待办项状态
        /// </summary>
        public TodoItemStatus TodoItemStatus { get; set; } = TodoItemStatus.Active;

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public string UpdateTime { get; set; }

        /// <summary>
        /// 完成时间
        /// </summary>
        public string CompleteTime { get; set; }

        /// <summary>
        /// 是否已删除
        /// </summary>
        [DefaultValue(false)]
        public bool IsDeleted { get; set; }
    }
}
